<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<table>
<tr>
<td><a href="#" style="font-size:12px;" onclick="changePage(1)">首页</a></td>
<c:if test="${page.currentPage > 1}">
<td><a href="#" style="font-size:12px;" onclick="changePage(${page.currentPage}-1)">上一页</a></td></c:if>
<td>${page.currentPage}</td>
<c:if test="${page.totalPage > 1 && page.currentPage < page.totalPage}">
<td><a href="#" style="font-size:12px;" onclick="changePage(${page.currentPage}+1)">下一页</a></td></c:if>
<td><a href="#" style="font-size:12px;" onclick="changePage(${page.totalPage})">末页</a></td>
<td>共${page.totalPage}页</td>
<td>总计${page.sum}条记录</td>
</tr>
</table>
